import axios from './../utils/request';

/**
 * 模块名: 下拉框
 */

// 教师下拉框
export const teacherList = () => {
  return axios.request({
    url: '/common/teachers',
    method: 'get',
  });
};

// 专业
export const majorList = () => {
  return axios.request({
    url: '/common/majors',
    method: 'get',
  });
};

// 角色
export const rolesList = () => {
  return axios.request({
    url: '/common/roles',
    method: 'get',
  });
};

// 学院
export const departmentsList = () => {
  return axios.request({
    url: '/common/departments',
    method: 'get',
  });
};

// 教室
export const classRoomsList = () => {
  return axios.request({
    url: '/common/classRooms',
    method: 'get',
  });
};

// 课程
export const coursesList = () => {
  return axios.request({
    url: '/common/courses',
    method: 'get',
  });
};

// 上课时间
export const timeSlotList = () => {
  return axios.request({
    url: '/common/timeSlots',
    method: 'get',
  });
};

export default {
  coursesList,
  classRoomsList,
  departmentsList,
  teacherList,
  rolesList,
  majorList,
  timeSlotList,
};
